package com.excilys.grails
class Song {
    Album album

    // 1. Attributs simple
    String name
    Integer duration
    String artistName

    static constraints = {
        album (nullable:true)
    }

    static mapping = {
        description type:'text'
        name(blank:false)
        artistName(blank:false)
    }
}